import request from '@/utils/request'

export function login(username, password,code) {
  const data = {
    username,
    password,
    code
  }
  return request({
    url: 'companymanage/login',
    method: 'post',
    data
  })
}

export function getUserInfo() {
  return request({
    url: 'companymanage/getComapnyInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: 'companymanage/logout',
    method: 'get'
  })
}


export function apigetCode(cellPhone){
  return request({
    url:'companymanage/getCode',
    method:'get',
    params:{
      cellPhone:cellPhone
    }
  })
}


export function checkCode(cellPhone,code){
  return request({
    url:'companymanage/checkCode',
    method:'get',
    params:{
      cellPhone:cellPhone,
      code:code
    }
  })
}